<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:83:"D:\myphp\PHPTutorial\WWW\greenstuff\conf/../template/admin\datasta_newregister.html";i:1534495299;}*/ ?>
<!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml">
<head lang="en">
    <meta content="webkit" name="renderer" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="UTF-8">
    <title>新注册用户统计</title>
    <script type="text/javascript">
        function sousuo() {
            $("#search").submit();
        }
    </script>
</head>

<body>

<!--header结束-->
<div style="width: 100%;background-color: #fff;min-height: 800px;">
    <div class="qiyeguanli">


        <div style="width:975px;margin:40px auto 0;height: 445px;" id="main">

        </div>


    </div>
</div>

<script type="text/javascript" src="__AJS__echarts.min.js" ></script>
<script type="text/javascript">
    $(".yx-rotaion").yx_rotaion({
        auto: true
    });
</script>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts图表
    //$("#main").css( 'width', $(window).width() );
    var myCharta = echarts.init(document.getElementById('main'));
    var option = {
        title : {
            text: '新注册用户柱状图',

        },
        tooltip : {
            trigger: 'axis'
        },
        legend: {
            data:['总收入','从业人员','缴税金额','净收入']
        },
        toolbox: {
            show : true,
            feature : {
                dataView : {show: true, readOnly: true},
                magicType : {show: true, type: ['line', 'bar']},
                restore : {show: true},
                saveAsImage : {show: true}
            }
        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                data : ['1995','1996','1997','1998']
            }
        ],
        yAxis : [
            {
                type : 'value'
            }
        ],
        series : [
            {
                name:'总收入',
                type:'bar',
                data:[100,200,300,400],
                label:{
                    normal:{
                        show: true,
                        position: 'top'}
                }



            },
            {
                name:'从业人员',
                type:'bar',
                data:[100,200],
                label:{
                    normal:{
                        show: true,
                        position: 'top'}
                }

            },
            {
                name:'缴税金额',
                type:'bar',
                data:[200,100,100,50],
                label:{
                    normal:{
                        show: true,
                        position: 'top'}
                }

            },
            {
                name:'净收入',
                type:'bar',
                data:[80,100,100,50],
                label:{
                    normal:{
                        show: true,
                        position: 'top'}
                }

            }

        ]

    };

    /*var option = {
   title:{
       text:'ECharts 数据统计'
   },
   series:[{
       name:'访问量',
       type:'pie',
       radius:'60%',
       data:[
           {value:500,name:'Android'},
           {value:200,name:'IOS'},
           {value:360,name:'PC'},
           {value:100,name:'Ohter'}
       ]
   }]
};*/
    // 为echarts对象加载数据
    myCharta.setOption(option);
    //绑定图表resize事件
    window.addEventListener("resize", function () {
        myCharta.resize();
    });

</script>

</body>

</html>